<?php
function poiCellRender($cell, $data){
	if($cell->getColumn()->getName() == 'business_phone' || $cell->getColumn()->getName() == 'mobile'){
		return str_replace(',', '<br/>', $cell->getCellText());
	}
	if($cell->getColumn()->getName() == 'shop_status'){
		$text = $cell->getCellText();
		$status = Kd_Localize_Helper::getLanguageItems('status.publication');
		return '<a href="'.$cell->getCellLinkUrl().'"><span>'.(empty($text)? Kd_Localize_Helper::__('poi.label.none'): $status[$text]).'</span></a>';
	}
	return FALSE;
}
$this->grid->setCellRender(poiCellRender);
$this->setLayout('template'.DS.'default.phtml');

$this->startBlock('topbar');
echo $this->navigation->toHtml();
$this->endBlock();

$this->startBlock();
echo $this->loadTemplate('share'.DS.'grid.phtml', array('grid'=>$this->grid, 'pagination'=>$this->pagination, 'toolbar'=>$this->toolbar));
$this->endBlock();

$this->startBlock('bottombar');
echo $this->pagination->toHtml();
$this->endBlock();